//
//  TopCell.m
//  MaxMovie
//
//  Created by Maxdong on 14-12-29.
//  Copyright (c) 2014年 lanou3g.com 蓝欧科技. All rights reserved.
//

#import "TopCell.h"

@implementation TopCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self =[super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self setCell];
        
    }
    return self;
}

- (void)setCell
{
    //小图标
    UIImage * img =[UIImage imageNamed:@"paihang.png"];
    UIImageView * tmpImageView =[[UIImageView alloc] initWithFrame:CGRectMake(10, 10, 30, 30)];
    tmpImageView.image= img;
    [self.contentView addSubview:tmpImageView];
    [tmpImageView release];
    self.myImageView = tmpImageView;
    
    
    //标题
    UILabel * tmptitleLabel =[[UILabel alloc]initWithFrame:CGRectMake(45, 10, 250, 20)];
    tmptitleLabel.font =[UIFont systemFontOfSize:14.0f];
    [self.contentView addSubview:tmptitleLabel];
    [tmptitleLabel release];
    self.titleLabel =tmptitleLabel;
    
    //英语名字
    UILabel * summaryLabel =[[UILabel alloc] initWithFrame:CGRectMake(45, 40, 250, 20)];
    summaryLabel.font =[UIFont systemFontOfSize:12.5f];
    [self.contentView addSubview:summaryLabel];
    [summaryLabel release];
    self.summaryLabel =summaryLabel;

    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
